package com.cdie.myschool.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ScoreDTO {
    /**
     * 学年学期id（calendar表）
     */
    @TableField(value = "semester_id")
    @NotEmpty(message = "学期输入为空!")
    private Long semesterId;
    /**
     * 学号
     */
    @TableField(value = "student_id")
    @NotEmpty(message = "学生学号输入为空!")
    private Long studentId;
}
